package com.umgsai.thread.thread66;

//线程组里加线程组
public class Main3 {
	public static void main(String[] args) {
		System.out.println("线程组名：" + Thread.currentThread().getThreadGroup().getName());
		System.out.println("线程组中活动线程数：" + Thread.currentThread().getThreadGroup().activeCount());
		System.out.println("线程组中线程组数量：" + Thread.currentThread().getThreadGroup().activeGroupCount());
		ThreadGroup group = new ThreadGroup(Thread.currentThread().getThreadGroup(), "newGroup");
		System.out.println("线程组中线程组数量：" + Thread.currentThread().getThreadGroup().activeGroupCount());
		System.out.println("父线程组名称：" + Thread.currentThread().getThreadGroup().getParent().getName());
	}
}
